from Thread_demo.threading_learning import Audio_except

audio_obj = None

class StaticTestA():

    @staticmethod
    def test_obj():
        global audio_obj
        if not audio_obj:
            audio_obj = Audio_except.audio_a_obj()
        return audio_obj


    def start_record(self,index,chanle):
        return audio_obj.start_queue(index,chanle)


    def stop_record(self,index,chanle):
        return audio_obj.stop_queue(index,chanle)